package goldminerClass;
import java.awt.Toolkit;
public class Rock extends Object{
    //建立构造器
    Rock(){
        //石块的随机位置
        this.x = (int)(Math.random()*700);
		this.y = (int)(Math.random()*550+300);
        //石块尺寸
        this.height = 71;
        this.width = 71;
        this.canMove = false;
        //石块的质量
        this.m = 50;
        //石块分数
        this.count = 1;
        //石块的药水属性
        this.type = 2;
        //石块的素材
        this.logo = Toolkit.getDefaultToolkit().getImage("src/imgs/rock1.png");
    }
}
